<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>관리자</title>
<link rel="stylesheet" type="text/css" href="/Public/css/style.css" />
<!-- jQuery file -->
<script src="/Public/js/jquery.js"></script>
<script src="/Public/js/jquery.min.js"></script>
<script src="/Public/js/jquery.tabify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var $ = jQuery.noConflict();
$(function() {
$('#tabsmenu').tabify();
$(".toggle_container").hide(); 
$(".trigger").click(function(){
	$(this).toggleClass("active").next().slideToggle("slow");
	return false;
});
});
</script>
</head>
<body>
<div id="panelwrap">
  	
	<div class="header">
    <div class="title"><a href="#">관리자</a></div>
    
    <div class="header_right">Welcome <?php echo ($outid); ?>,  <a href="<?php echo U('logout');?>" class="logout">Logout</a> </div>
               
    <div class="center_content">  
 
    <div id="right_wrap">
    

<div id="right_content">
  <h2>통화기록</h2>
 <div id="tab1" class="tabcontent">
    <h3>통화기록</h3>
    <div class="form">
      <div class="form_row">
        <label>Tel:</label>
        <input type="text" class="form_input" name="tel" id="tel" value="<?php echo ($data["tel"]); ?>" disabled readonly />
        <!-- <a href="#"  >check</a> -->
      </div>
      <div class="form_row">
        <label>Name:</label>
        <input type="text" class="form_input" name="name" id="name" value="<?php echo ($data["name"]); ?>" disabled readonly />
      </div>
      <div class="form_row">
        <label>level:</label>
        <select class="form_select" name="level" disabled readonly>
          <option value="0" <?php if(($data["level"]) == "0"): ?>selected<?php endif; ?> >0</option>
          <option value="1" <?php if(($data["level"]) == "1"): ?>selected<?php endif; ?> >레벨1 문자전송</option>
          <option value="2" <?php if(($data["level"]) == "2"): ?>selected<?php endif; ?> >레벨2 재전화요망</option>
          <option value="3" <?php if(($data["level"]) == "3"): ?>selected<?php endif; ?> >레벨3 부재중</option>
          <option value="4" <?php if(($data["level"]) == "4"): ?>selected<?php endif; ?> >레벨4 게임안함</option>
          <option value="5" <?php if(($data["level"]) == "5"): ?>selected<?php endif; ?> >레벨5 매장,총판 원하는 유저</option>
          <option value="6" <?php if(($data["level"]) == "6"): ?>selected<?php endif; ?> >레벨6 delete</option>
        </select>
      </div>
      <div class="clear"></div>
    </div>
  </div> 
  <div class="form_sub_buttons"></div>
</div>
</LT>

<div id="right_content">
  <h2>call list</h2>
  <table id="rounded-corner">
    <thead>
      <tr>
        <th width="40">이름</th>
        <th width="95">전화번호</th>
        <th width="245">통화기록</th>
        <th width="90">고객상담id</th>
        <th width="120">등록일자</th>
      </tr>
    </thead>

    <tbody>
      <td height="6"><?php if(is_array($list)): foreach($list as $key=>$v): if((($v["id"] % 2) == 1) ): ?><tr class="odd">
        <?php else: ?>
    <tr class="even"><?php endif; ?>
        
            <td><?php echo ($v["name"]); ?></td>
            <td><?php echo ($v["tel"]); ?></td>
            <td><?php echo ($v["log"]); ?></td>
            <td><?php echo ($v["uid"]); ?></td>
            <td width="84"><?php echo ($v["addtime"]); ?></td>
   	</tr>
        <!-- <th><?php echo (date('y-m-d H:i',$v["addtime"])); ?></th>--><?php endforeach; endif; ?>

    </tbody>
        <tfoot>
      <tr>
        <td colspan="12"></td>
      </tr>
    </tfoot>
  </table>
</div>

    </div>
    <!-- end of right content-->
                     
                    
    <div class="sidebar" id="sidebar">
    <h2>Customer Admin</h2>
    
        <ul>
            <li><a href="<?php echo U('Home/Customer/showCustomerList/p/1');?>">회원 리스트</a></li>
            <li><a href="<?php echo U('Home/Customer/uploadCustomer');?>">Customer upload</a></li>
            <li><a href="#">test</a></li>
        </ul>
    <h2>User Admin</h2>
    
        <ul>
            <li><a href="<?php echo U('Home/Customer/showUserList/p/1');?>">회원 목록</a></li>
        </ul> 
        
    <h2>My</h2>
    
        <ul>
            <li><a href="#">바뀐 비밀번호</a></li>
        </ul> 
        
       
    <h2>Text Section</h2> 
    <div class="sidebar_section_text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    </div>         
    
    </div>             
    
    
    <div class="clear"></div>
    </div> <!--end of center_content-->
    
    <div class="footer">
Panelo - Free Admin Collect from</div>

</div>

    	
</body>
</html>